﻿
namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 工位表查询对象
    /// </summary>
    public class CksWorkRecordQueryDto : PagerInfo
    {
        public string PrimaryCode { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 结束时间 
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string StationCode { get; set; }

    }

    /// <summary>
    /// 工位表输入输出对象
    /// </summary>
    public class CksWorkRecordDto
    {
        public int Id { get; set; }

        /// <summary>
        /// PlcID 
        /// </summary>
        public int PlcID { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string ProductionLineCode { get; set; }

        /// <summary>
        /// 工站编号
        /// </summary>
        public string StationCode { get; set; }

        /// <summary>
        /// 读取点位
        /// </summary>
        public int ReadDB { get; set; }

        /// <summary>
        /// DB块备注
        /// </summary>
        public string DBBlockRemark { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        public string PrimaryCode { get; set; }


        /// <summary>
        /// 入站时间
        /// </summary>
        public DateTime? MoveInTime { get; set; }

        /// <summary>
        /// 生产开始时间
        /// </summary>
        public DateTime? ProductionStartTime { get; set; }

        /// <summary>
        /// 生产结束时间
        /// </summary>
        public DateTime? ProductionEndTime { get; set; }

        /// <summary>
        /// 出站时间
        /// </summary>
        public DateTime? MoveOutTime { get; set; }

        /// <summary>
        /// CreatedTime 
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 加工结果
        /// </summary>
        public int? Result { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public bool? Nullity { get; set; }
    }
}